home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / all macintosh / codecs / qdmediamaker / qdmmaker.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  1.9 KB  |  92 lines

  1. //////////
  2. //
  3. //    File:        QDMMaker.h
  4. //
  5. //    Contains:    Code to create movies that use the derived QuickDraw media handler.
  6. //
  7. //    Written by:    Tim Monroe
  8. //                Based on MyMakeMediaMovies code written by John Wang.
  9. //
  10. //    Copyright:    © 1993-1999 by Apple Computer, Inc., all rights reserved.
  11. //
  12. //    Change History (most recent first):
  13. //
  14. //       <2>         01/14/99    rtm        conversion to personal coding style
  15. //       <1>         02/25/93    jw        first file
  16. //       
  17. //////////
  18.  
  19. //////////
  20. //
  21. // header files
  22. //
  23. //////////
  24.  
  25. #ifndef __MOVIES__
  26. #include <Movies.h>
  27. #endif
  28.  
  29. #ifndef __MEDIAHANDLERS__
  30. #include <MediaHandlers.h>
  31. #endif
  32.  
  33. #ifndef __ENDIAN__
  34. #include <Endian.h>
  35. #endif
  36.  
  37. #ifndef __SCRIPT__
  38. #include <Script.h>
  39. #endif
  40.  
  41. #ifndef __SOUND__
  42. #include <Sound.h>
  43. #endif
  44.  
  45. #ifndef __FIXMATH__
  46. #include <FixMath.h>
  47. #endif
  48.  
  49. #ifndef __QDOFFSCREEN__
  50. #include <QDOffscreen.h>
  51. #endif
  52.  
  53. #ifndef __QDMEDIACOMMON__
  54. #include "QDMediaCommon.h"
  55. #endif
  56.  
  57. #ifndef __QTUtilities__
  58. #include "QTUtilities.h"
  59. #endif
  60.  
  61. #include "ComResource.h"
  62.  
  63.  
  64. //////////
  65. //
  66. // constants
  67. //
  68. //////////
  69.  
  70. #define kQDTrackWidth                400
  71. #define kQDTrackHeight                300
  72. #define kQDMediaTimeScale            600
  73.  
  74. #define kSaveQDMoviePrompt            "Save movie file as:"
  75. #define kSaveQDMovieFileName        "Untitled.mov"
  76.  
  77. #define kWindowTitle                "Display Graphics"
  78.  
  79. //////////
  80. //
  81. // function prototypes
  82. //
  83. //////////
  84.  
  85. static OSErr                        QDMM_AddRowsSamples (Media theMedia, short theWidth, short theHeight, QDrawDescriptionHandle theQDDesc);
  86. static OSErr                        QDMM_AddLinesSamples (Media theMedia, short theWidth, short theHeight, QDrawDescriptionHandle theQDDesc);
  87. static OSErr                        QDMM_AddBoxesSamples (Media theMedia, short theWidth, short theHeight, QDrawDescriptionHandle theQDDesc);
  88. static OSErr                        QDMM_AddBallSamples (Media theMedia, short theWidth, short theHeight, QDrawDescriptionHandle theQDDesc);
  89. void                                QDMM_MakeQDMovie (UInt16 theMenuItem, short theWidth, short theHeight);
  90.  
  91.  
  92.